<?
require_once 'PHPUnit/Framework.php';
require_once '../../init.php';

class MimeTest extends PHPUnit_Framework_TestCase
{
	public static function provider_mimes()
    {
		return array(
			array("foto.JPG", "image/jpeg"),
			array("Js", "application/x-javascript"),
		);
    }

    /**
     * @dataProvider provider_mimes
     */
    public function test_mime($ext, $mime)
    {
        $this->assertEquals($mime, Qi_Http_Mime::ext($ext));
    }
}

?>